home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 207 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. From: gsez020@nemo.bedford.waii.com (Pete Forman)
  2. Message-ID: <tuivhsd7fn.fsf@nemo.bedford.waii.com>
  3. X-Original-Date: 31 Jan 1996 09:45:00 +0000
  4. Path: in1.uu.net!bounce-back
  5. Date: 01 Feb 96 02:09:05 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Return-Path: <daemon@meeker.UCAR.EDU>
  8. Newsgroups: comp.std.c++
  9. Subject: Re: Time representations
  10. Organization: Western Geophysical, Div. of Western Atlas Int'l, Bedford, UK
  11. References: <4emq2k$ecu@news.duke.edu>
  12. In-Reply-To: Max TenEyck Woodbury's message of 30 Jan 1996 20:24:13 PST
  13. X-Newsreader: Gnus v5.0.4
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBFAgUBMRAgzuEDnX0m9pzZAQEm5AF+N/+Xt88wi6/WSa30HWOiDjerx/Kq9xmA
  16.     3EoRDlu+/vM0tprXu16KW97AG+tOIZ2Q
  17.     =+OwT
  18.  
  19. >>>>> "Max" == Max TenEyck Woodbury <mtew@cds.duke.edu> writes:
  20.  
  21.     Max> First, the range specified for tm_sec is 0-59.
  22.  
  23. My documentation (IRIX 6.1) gives the range as 0-61.  I presume that
  24. the current standard does cover leap seconds and that your copy is out
  25. of date.  I don't understand why it's not 0-60, though.
  26.  
  27. Your remaining points have little relevance.  localtime() and friends
  28. are indeed only useful for the Gregorian calendar.  If you were to try
  29. to extend to other calendars you would have difficulty specifying the
  30. rules.  Days may start at dusk, months according to observations of
  31. the moon.  Programs can only approximate the future and look up the
  32. past.
  33. -- 
  34. Pete Forman
  35. Western Geophysical
  36. pete.forman@bedford.waii.com
  37. ---
  38. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  39.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  40.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  41.